package com.campus.course.dto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 选课记录表
 * </p>
 *
 * @author maojr
 * @since 2024-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_records")
@ApiModel(value="CourseRecords对象", description="选课记录表")
public class CourseRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "学生学号")
    private Integer studentId;

    @ApiModelProperty(value = "课程主键id")
    private Integer courseId;

    @ApiModelProperty(value = "选课状态（1选择，0退课）")
    private Integer status;

    @ApiModelProperty(value = "缺勤次数")
    private Integer absence;

    @ApiModelProperty(value = "选课时间")
    private LocalDateTime chooseTime;


}
